-
Notifications
You must be signed in to change notification settings - Fork 12
fix: Fixes legend sync for standalone legend exit #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6cee7e8 to
e682fd8
Compare
| this.chartExtraLegend.onClearHighlight(); | ||
|
|
||
| // Notify the consumer that a clear-highlight action was made. | ||
| fireNonCancelableEvent(this.context.handlers.onClearHighlight, { isApiCall: false }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a legend item highlight exits we call onClearChartItemsHighlight() to clear the chart's series highlight accordingly. However, we were not calling the onClearHighlight() in that case - which is a mistake.
SpyZzey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e682fd8 to
90910aa
Compare
90910aa to
0cbb1b3
Compare


Description
An alternative for: #131
The PR introduces a new core test page that shows events synchronisation between standalone and in-chart legends, and includes a fix for the in-chart legend to call clear-highlight event on item highlight exit.
How has this been tested?
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md.CONTRIBUTING.md.Security
checkSafeUrlfunction.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.